/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.com.sml.SEFM.BUS;

import java.util.Iterator;
import java.util.List;
import javax.persistence.RollbackException;
import javax.transaction.HeuristicMixedException;
import javax.transaction.HeuristicRollbackException;
import javax.transaction.SystemException;
import vn.com.sml.SEFM.DAO.CardBlackDAO;
import vn.com.sml.SEFM.domain.Countries;
import vn.com.sml.SEFM.domain.Cardblacklist;
/**
 *
 * @author Tunp
 */
public class CardBlackBUS {
    public static List<Cardblacklist> listCardBlacklist() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException{
        return CardBlackDAO.listCardBlacklist();
    }

    public static Integer saveCardBlack(Cardblacklist CardBlack) throws RollbackException, SecurityException, HeuristicRollbackException, HeuristicMixedException, IllegalStateException, SystemException {
        return CardBlackDAO.saveCardBlacklist(CardBlack);
    }

    public static List<Cardblacklist> listCardBlacklist(String search_col, String search_content) {
        return CardBlackDAO.listCardBlacklist(search_col,search_content);
    }
    
    public static Boolean DeleteBlackCard(int id) {
        return CardBlackDAO.DeleteBlackCard(id);
    }
}
